package com.example.ruiji.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.ruiji.Dto.DishDto;
import com.example.ruiji.common.Result;
import com.example.ruiji.entity.Dish;

import java.util.List;

public interface DishService {
    Result<Page<DishDto>> Page(Integer page, Integer pageSize, String name);

    Result<String> add(DishDto dishDto);

    Result<DishDto> getById(Long id);

    Result<String> update(DishDto dishDto);

    Result<List<DishDto>> list(Dish dish);
}
